package com.tiantian.common.core.constraints.level;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author tiantian
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Constraint(validatedBy = {CheckLevelValidator.class})
public @interface CheckLevel {

    String message() default "题目难度设置不正确";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
